package bist.believeinstep.logic;

import java.util.List;

import bist.believeinstep.domain.RestaurantHotelImage;
import bist.believeinstep.impl.RestaurantHotelImageTemplate;
import bist.believeinstep.util.Util;

public class RestaurantHotalImageService {
	private RestaurantHotelImageTemplate resHotelImageTemplate;
	
	public RestaurantHotalImageService(){
		resHotelImageTemplate = (RestaurantHotelImageTemplate)Util.getConnection("resHotelImageTemplate");
	}
	public void create(RestaurantHotelImage restaurantHotelImage){
		resHotelImageTemplate.create(restaurantHotelImage);
	}
	public void update(RestaurantHotelImage restaurantHotelImage){
		resHotelImageTemplate.update(restaurantHotelImage);
	}
	public void delete(Integer id){
		resHotelImageTemplate.delete(id);
	}
	public List<RestaurantHotelImage> list(){
		return resHotelImageTemplate.list();
	}
}
